package com.hntky.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName t_sector
 */
@TableName(value ="t_sector")
@Data
public class Sector implements Serializable {
    /**
     * 科室号
     */
    @Alias("科室编号")
    @TableId(value = "sid", type = IdType.AUTO)
    private Integer sid;

    /**
     * 科室名
     */
    @Alias("科室姓名")
    @TableField(value = "sname")
    private String sname;

    /**
     * 科室地址
     */
    @Alias("科室地址")
    @TableField(value = "saddr")
    private String saddr;

    /**
     * 科室电话
     */
    @Alias("科室电话")
    @TableField(value = "sphone")
    private String sphone;

    /**
     * 科室主任
     */
    @Alias("科室主任")
    @TableField(value = "sdirector")
    private String sdirector;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<Doctor> doctors;

    @TableField(exist = false)
    private List<Patient> patients;

    @TableField(exist = false)
    private List<Nurse> nurses;

    @TableField(exist = false)
    private List<Sickroom> sickrooms;
}